package com.jzo2o.foundations.enums;/*
 * ClassName: FoundationIsHotEnum
 * Package: com.jzo2o.foundations.enums
 * Description:
 * @Author: LaiLai
 * @Create: 13/3/2024 - 上午8:44
 * @Version: V1.0
 */

import cn.hutool.crypto.digest.otp.HOTP;
import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum FoundationIsHotEnum {
    HOT(1,"热门"),
    NoHot(0,"取消热门");
    //枚举状态
    private int status;
    //该状态的意义
    private String description;

    public boolean equals(Integer status) {
        return this.status == status;
    }

    public boolean equals(FoundationIsHotEnum isHotStatusEnum) {
        return isHotStatusEnum != null && isHotStatusEnum.status == this.getStatus();
    }
}
